package com.web.farme.annotation;

import org.apache.ibatis.type.JdbcType;

import java.lang.annotation.*;

/**
 * @Classname Column
 * @Description TODO
 * @Date 2021/5/13 下午2:27
 * @Created by sakura
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Column {

    String columnName() default "";

    JdbcType jdbcType() default JdbcType.UNDEFINED;

    int length() default -1;

    boolean isPrimaryKey() default false;

    boolean auto()default false;

    boolean isNull() default true;

    String comment() default "";

    String columnDefault() default "";



}
